/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

jQuery.fn.newlive = function(){
    $.each($(this),function(){
        
    });
}
$(document).ready(function(){
        var tab_w =    $(".main-tab > div:eq(0)").width();
        var main_tab = $(".main-tab:eq(0)").width() + 15;
        $(".main-tab").css({"width" : ( main_tab * 3) + "px"});
        $(".main-tab > div").css("width" , main_tab + "px");
        $("body").click(function(){
                $(".main-tab > div:eq(0)").stop().animate({"marginLeft" :(main_tab * -1) + "px" },700,'easeInOutExpo',function(){
                    $(this).css("marginLeft","0px").appendTo(".main-tab");
                });
        });
        
       $(".table-wiged").bind("contextmenu",function(e){
           alert(e.pageX);
           return false;
       });
       
       $(".table-wiged > tbody > tr").bind("click",function(e){
           if(!e.ctrlKey){
                $(".table-wiged > tbody > tr").removeClass("colorrow border-row");
           }
           $(this).addClass("colorrow border-row");
       });
       $(".table-wiged > tbody > tr:last  td").css("borderBottom","#6D6D6D 3px solid");// border-top: #6D6D6D 3px solid;
       
       $("body").click(function(e){
          
           if(e.ctrlKey){
               
           }
       });
});